<?php

class Adept_Component_CheckBox extends Adept_Component_ValueControl 
{
    
    protected $label;
    protected $checked;
    
    public function getLabel() 
    {
        if (!is_null($this->label)) {
            return $this->label;
        }
        return $this->getValueOfBinding('label', null);
    }
    
    public function setLabel($label) 
    {
        $this->label = $label;
    }
    
    public function isChecked() 
    {
        return $this->checked;
    }
    
    public function setChecked($checked) 
    {
        $this->checked = $checked;
    }
    
    
    public function hasRenderer() 
    {
    	return true;
    }	
    
}
